<!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title></title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/style-metro.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/uniform.default.css" rel="stylesheet" type="text/css"/>
	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN PAGE LEVEL STYLES --> 
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/jquery.gritter.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/daterangepicker.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/fullcalendar.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/jqvmap.css" rel="stylesheet" type="text/css" media="screen"/>
	<link href="<?php echo  $this->module->assetsUrl; ?>/css/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" media="screen"/>
	<!-- END PAGE LEVEL STYLES -->
	<link rel="shortcut icon" href="<?php echo  $this->module->assetsUrl; ?>/image/favicon.ico" />
        <link href="<?php echo  $this->module->assetsUrl; ?>/css/profile.css" rel="stylesheet" type="text/css" />
            
        <!-- view页-->
    
	<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl;?>/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl;?>/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl;?>/easyui/demo.css">
        
      <link href="<?php echo $this->module->assetsUrl;?>/css/glyphicons.css" rel="stylesheet" />
	<link href="<?php echo $this->module->assetsUrl;?>/css/halflings.css" rel="stylesheet" />
	<!-- END PAGE LEVEL STYLES -->
	<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl;?>/css/select2_metro.css" />
        
        
        
	     <?php Yii::app()->clientScript->registerCoreScript('jquery');//引入Yii内置jQeury核心文件?>
        
        <?php Yii::app()->bootstrap->register(); ?>
  
        
        
        
   <style type="text/css">
    
    .filter-container Input{
        width:100px;  
    }
    
    .yiiPager{width: 700px;}
    
</style>     
             
        

</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
	<!-- BEGIN HEADER -->
     
	<div class="header navbar navbar-inverse navbar-fixed-top">
		<!-- BEGIN TOP NAVIGATION BAR -->
		<div class="navbar-inner">
			<div class="container-fluid">
				<!-- BEGIN LOGO -->
				<a class="brand" href="index.html">
				<img src="<?php echo  $this->module->assetsUrl; ?>/image/logo.png" alt="logo"/>
				</a>
				<!-- END LOGO -->
				<!-- BEGIN RESPONSIVE MENU TOGGLER -->
				<a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
				<img src="<?php echo  $this->module->assetsUrl; ?>/image/menu-toggler.png" alt="" />
				</a>          
				<!-- END RESPONSIVE MENU TOGGLER -->            
				<!-- BEGIN TOP NAVIGATION MENU -->              
				<ul class="nav pull-right">
					<li class="">
                                            
                                            <a href="<?php echo Yii::app()->createUrl('site');?>" target="_blank"><i class="icon-home icon-2x icon-white"></i>返回前台</a>
            
                                        </li>
					<!-- BEGIN USER LOGIN DROPDOWN -->
					<li class="dropdown user">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						<img alt="" src="<?php echo  $this->module->assetsUrl; ?>/image/avatar1_small.jpg" />
                                                <?php if(YII::app()->user->Alumni_id):?>
                                                    <span class="username"><?php echo Yii::app()->user->rename;?></span>
                                               <?php  else:?>
                                                    <span class="username"><?php echo Yii::app()->user->username;?></span>
                                               <?php endif;?>
                                                    
						<i class="icon-angle-down"></i>
						</a>
						<ul class="dropdown-menu">
                                                    <li><a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/default/info');?>"><i class="icon-user"></i>个人信息</a></li>
<!--							<li><a href="page_calendar.html"><i class="icon-calendar"></i> My Calendar</a></li>
							<li><a href="inbox.html"><i class="icon-envelope"></i> My Inbox(3)</a></li>
							<li><a href="#"><i class="icon-tasks"></i> My Tasks</a></li>
							<li class="divider"></li>
							<li><a href="extra_lock.html"><i class="icon-lock"></i> Lock Screen</a></li>-->
							<li><a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/default/logout');?>"><i class="icon-key"></i>退出</a></li>
                                                        
						</ul>
					</li>
					<!-- END USER LOGIN DROPDOWN -->
				</ul>
				<!-- END TOP NAVIGATION MENU --> 
			</div>
		</div>
		<!-- END TOP NAVIGATION BAR -->
	</div>
	<!-- END HEADER -->
	<!-- BEGIN CONTAINER -->
	<div class="page-container">
<!--		 BEGIN SIDEBAR -->
		<div class="page-sidebar nav-collapse collapse">
<!--			 BEGIN SIDEBAR MENU         -->
			<ul class="page-sidebar-menu">
				<li>
<!--					 BEGIN SIDEBAR TOGGLER BUTTON -->
					<div class="sidebar-toggler hidden-phone"></div>
<!--					 BEGIN SIDEBAR TOGGLER BUTTON -->
				</li>
				<li>
<!--					 BEGIN RESPONSIVE QUICK SEARCH FORM -->
					<form class="sidebar-search">
						<div class="input-box">
							<a href="javascript:;" class="remove"></a>
							<input type="text" placeholder="Search..." />
							<input type="button" class="submit" value=" " />
						</div>
					</form>
<!--					 END RESPONSIVE QUICK SEARCH FORM -->
				</li>
				

                                <li class="">
					<a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/activity/index');?>">
					<i class="icon-home"></i> 
					<span class="title">首页</span>
					<span class="arrow"></span>
					</a>
				</li>

				<li class="">
					<a href="javascript:;">
					<i class="icon-cogs"></i> 
					<span class="title">活动管理</span>
					<span class="arrow"></span>
					</a>
					<ul class="sub-menu">
						<li >
							<a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/activity/index');?>">查看活动</a>
						</li>
						<li >
							<a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/activity/add');?>">添加活动</a>
						</li>
						
					</ul>
				</li>
                                
                                <li class="">
					<a href="javascript:;">
					<i class="icon-bookmark-empty"></i> 
					<span class="title">新闻管理</span>
					<span class="arrow"></span>
					</a>
					<ul class="sub-menu">
						<li >
							<a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/new/index');?>">查看新闻</a>
						</li>
						<li >
							<a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/new/add');?>">添加新闻</a>
						</li>
						
					</ul>
				</li>
                                
                                
                                <?php if(!Yii::app()->user->Alumni_id || !Yii::app()->user->parent_id):?>
                                <li class="">
                                        <a href="javascript:;">
                                        <i class="icon-bookmark-empty"></i> 
                                        <span class="title">合作院校</span>
                                        <span class="arrow"></span>
                                        </a>
                                        <ul class="sub-menu">
                                                <li ><a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/Alumi/index');?>">院校列表</a></li>
                                        </ul>
                                </li>
                                
                                
                                 <li class="">
					<a href="javascript:;">
					<i class="icon-bookmark-empty"></i> 
					<span class="title">学校管理</span>
					<span class="arrow"></span>
					</a>
					<ul class="sub-menu">
						 <li >
							<a href="<?php  echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/college/index');?> ">学校列表</a> 
						</li>	
					</ul>
				</li>
                                
                                 <li class="">
                                    <a href="javascript:;">
                                    <i class="icon-male"></i> 
                                    <span class="title">文章管理</span>
                                    <span class="arrow"></span>
                                    </a>
                                    <ul class="sub-menu">
                                            <li ><a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/article/fc');?>">名人名校</a></li>
                                            <li ><a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/article/mba');?>">MAB·EMBA</a></li>

                                    </ul>
                                </li>
                                
                                <li class="">
                                           <a href="javascript:;">
                                           <i class="icon-bookmark-empty"></i> 
                                           <span class="title">生活爆料</span>
                                           <span class="arrow"></span>
                                           </a>
                                           <ul class="sub-menu">
                                                   <li >
                                                       <a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/disclose/index');?>">爆料列表</a>
                                                   </li>
                                           </ul>
                                </li>
                                
    
                                <?php else: ?>   
                                
                              
                                <?php /* elseif (Yii::app()->user->parent_id !=0 ): */?>
                                    <li class="">
                                             <a href="javascript:;">
                                             <i class="icon-user"></i> 
                                             <span class="title">用户管理</span>
                                             <span class="arrow"></span>
                                             </a>
                                             <ul class="sub-menu">
                                                     <li >
                                                             <a href="<?php echo Yii::app()->createUrl(Yii::app()->params['adminUrl'].'/user/index');?>">用户列表</a>
                                                     </li>
                                             </ul>
                                     </li>  
                                     
                                <?php endif;?>
			</ul>
<!--			 END SIDEBAR MENU -->
		</div>

                
                <div class="page-content">
                        <?php echo $content; ?>
                 
                </div>
                
<!--		 END SIDEBAR 
		 BEGIN PAGE -->
		



<!--		 END PAGE -->
	</div>
<!--	 END CONTAINER 
	 BEGIN FOOTER -->
	<div class="footer">
		<div class="footer-inner">
			2014 &copy;  by 校友会.
		</div>
		<div class="footer-tools">
			<span class="go-top">
			<i class="icon-angle-up"></i>
			</span>
		</div>
	</div>
        
	<!-- END FOOTER -->
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->
	
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
	<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>  
        
    
	<!--[if lt IE 9]>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/excanvas.min.js"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/respond.min.js"></script>  
	<![endif]-->   
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.slimscroll.min.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.blockui.min.js" type="text/javascript"></script>  
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.cookie.min.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.uniform.min.js" type="text/javascript" ></script>
	<!-- END CORE PLUGINS -->
	<!-- BEGIN PAGE LEVEL PLUGINS -->
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.vmap.js" type="text/javascript"></script>   
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.vmap.russia.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.vmap.world.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.vmap.europe.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.vmap.germany.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.vmap.usa.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.vmap.sampledata.js" type="text/javascript"></script>  
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.flot.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.flot.resize.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.pulsate.min.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/date.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/daterangepicker.js" type="text/javascript"></script>     
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.gritter.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/fullcalendar.min.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.easy-pie-chart.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.sparkline.min.js" type="text/javascript"></script>  
	<!-- END PAGE LEVEL PLUGINS -->
	<!-- BEGIN PAGE LEVEL SCRIPTS -->
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/app.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl; ?>/js/index.js" type="text/javascript"></script>        
	<!-- END PAGE LEVEL SCRIPTS -->  
        
        <script type="text/javascript" src="<?php echo  $this->module->assetsUrl; ?>/js/jquery.tagsinput.min.js"></script>
        
        <script type="text/javascript" src="<?php echo $this->module->assetsUrl;?>/easyui/jquery.easyui.min.js"></script>
        
        

	
	<script type="text/javascript" src="<?php echo $this->module->assetsUrl;?>/js/jquery.bootpag.min.js"></script>
        
        <script type="text/javascript" src="<?php echo $this->module->assetsUrl; ?>/js/select2.min.js"></script>
        <script src="<?php echo $this->module->assetsUrl; ?>/js/app.js"></script>
        <script src="<?php echo $this->module->assetsUrl; ?>/js/form-samples.js"></script>  


	<script>
        
		$(document).ready(function() {    
		   App.init(); // initlayout and core plugins
		   Index.init();  
                   
                  
                   var controller ='<?php echo Yii::app()->controller->id;?>';
                   var action='<?php echo $this->getAction()->getId();?>';
//                   $(".page-sidebar-menu li").live('click',function(){
//                       
//                       $(this).addClass("active");
//
//                   });
                   //检测添加导航select
                   console.log(controller);
                   console.log(action);
                    switch (controller)
                    {
                        case 'dashboard':
                         $(".page-sidebar-menu li:eq(2)").addClass("start active"); 
                          break;
                        case 'activity':
                              console.log(action);
                          $(".page-sidebar-menu li:eq(3)").addClass("start active");  
                          
                          switch(action){//控制器名
                               case 'index':
                                    $(".page-sidebar-menu li:eq(3) .sub-menu li:eq(0)").addClass("start active");  
                               break;
                               case 'add':
                                    $(".page-sidebar-menu li:eq(3) .sub-menu li:eq(1)").addClass("start active");  
                               break;
                               
                              default:
                                break;     
                          }
                          
                          break;
                        case 'new':
                          $(".page-sidebar-menu li:eq(6)").addClass("start active");  
                           switch(action){//控制器名
                               case 'index':
                                    $(".page-sidebar-menu li:eq(6) .sub-menu li:eq(0)").addClass("start active");  
                               break;
                               case 'add':
                                    $(".page-sidebar-menu li:eq(6) .sub-menu li:eq(1)").addClass("start active");  
                               break;
                               
                              default:
                                break;   
                          }
                          
                          break;
                          
                          case 'alumi':   
                          $(".page-sidebar-menu li:eq(9)").addClass("start active"); 
                          switch(action){//控制器名
                               case 'index':
                                    $(".page-sidebar-menu li:eq(9) .sub-menu li:eq(0)").addClass("start active");  
                               break;
                              default:
                                break;   
  
                          }
                          break;
                          
                          
                          case 'college':   
                          $(".page-sidebar-menu li:eq(11)").addClass("start active"); 
                          switch(action){//控制器名
                               case 'index':
                                    $(".page-sidebar-menu li:eq(11) .sub-menu li:eq(0)").addClass("start active");  
                               break;
                              default:
                                break;   
                          }
                          break; 
                          case 'article':   
                          $(".page-sidebar-menu li:eq(13)").addClass("start active"); 
                          switch(action){//控制器名
                               case 'fc':
                                    $(".page-sidebar-menu li:eq(13) .sub-menu li:eq(0)").addClass("start active");  
                               break;
                               case 'mba':
                                    $(".page-sidebar-menu li:eq(13) .sub-menu li:eq(1)").addClass("start active");  
                               break;
                              default:
                                break;   
  
                          }
                          break;
                          
                          case 'disclose':   
                          $(".page-sidebar-menu li:eq(16)").addClass("start active"); 
                          switch(action){//控制器名
                               case 'index':
                                    $(".page-sidebar-menu li:eq(16) .sub-menu li:eq(0)").addClass("start active");  
                               break;
                              default:
                                break;   
                          }
                          break;
                          
                         case 'user':   
                          $(".page-sidebar-menu li:eq(18)").addClass("start active"); 
                          switch(action){//控制器名
                               case 'index':
                                    $(".page-sidebar-menu li:eq(18) .sub-menu li:eq(0)").addClass("start active");  
                               break;
                              default:
                                break;   
  
                          }
                          break;
                        
                         
                      default:
                           break;
                    }
                   $(".page-sidebar-menu li .arrow").attr("class","selected");
                   
		});

	</script>
	<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>